package com.btpj.module_search.di

import com.btpj.module_search.data.remote.SearchRepository
import com.btpj.module_search.ui.HotKeyViewModel
import com.btpj.module_search.ui.SearchResultViewModel
import com.btpj.module_search.ui.SearchViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

val searchRepModule = module {
    factory { SearchRepository(get()) }
}

val searchViewModelModule = module {
    viewModel { SearchViewModel() }
    viewModel { HotKeyViewModel(get()) }
    viewModel { SearchResultViewModel(get()) }
}